import { ApiProperty } from '@nestjs/swagger';

export class CreatePermissionDto {
  @ApiProperty({
    description: 'id',
    example: '',
    required: true,
  })
  id: string;

  @ApiProperty({
    description: '权限代码',
    example: 'user:create',
  })
  permCode: string;

  @ApiProperty({
    description: '权限描述',
    example: '用户全部权限',
  })
  permName: string;

  @ApiProperty({
    description: '父亲id',
    example: '',
    default: '',
  })
  parentId: string;
}
